/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is Forte for Java, Community Edition. The Initial
* Developer of the Original Code is Sun Microsystems, Inc. Portions
* Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.modules.editor.options;
import java.util.List;
import org.openide.options.ContextSystemOption;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.text.PrintSettings;
/**
* Root node for all available editor options
*
* @author Miloslav Metelka
* @version 1.00
*/
public class AllOptions extends ContextSystemOption {
static final long serialVersionUID =-5703125420292694573L;
BaseOptions baseOptions = new BaseOptions(); // base kit settings
public AllOptions() {
addOption(new PlainOptions());
addOption(new JavaOptions());
addOption(new HTMLOptions());
PrintSettings ps = (PrintSettings) PrintSettings.findObject(PrintSettings.class, true);
ps.addOption(new PlainPrintOptions());
ps.addOption(new JavaPrintOptions());
ps.addOption(new HTMLPrintOptions());
}
public String displayName() {
return NbBundle.getBundle(AllOptions.class).getString("OPTIONS_all"); // NOI18N
}
public HelpCtx getHelpCtx () {
return new HelpCtx (AllOptions.class);
}
public List getKeyBindingList() {
return baseOptions.getKeyBindingList();
}
public void setKeyBindingList(List list) {
baseOptions.setKeyBindingList(list);
}
public boolean isGlobal() {
return true;
}
}
/*
* Log
* 11 Gandalf 1.10 1/15/00 Miloslav Metelka now global
* 10 Gandalf 1.9 1/13/00 Miloslav Metelka Localization
* 9 Gandalf 1.8 11/5/99 Jesse Glick Context help jumbo
* patch.
* 8 Gandalf 1.7 10/23/99 Ian Formanek NO SEMANTIC CHANGE - Sun
* Microsystems Copyright in File Comment
* 7 Gandalf 1.6 9/15/99 Miloslav Metelka
* 6 Gandalf 1.5 8/27/99 Miloslav Metelka
* 5 Gandalf 1.4 8/9/99 Ian Formanek Generated Serial Version
* UID
* 4 Gandalf 1.3 7/20/99 Miloslav Metelka
* 3 Gandalf 1.2 7/9/99 Ales Novak print options change
* 2 Gandalf 1.1 7/3/99 Ian Formanek Changed package
* statement to make it compilable
* 1 Gandalf 1.0 6/30/99 Ales Novak
* $
*/